#include "TestClass.h"
#include <iostream>

using namespace std;

TestClass::TestClass (int a, OOPPtr< TestClass > pSubObj) : _a (a),
  _pSubObj (pSubObj), _pTest (new TestClass1)
{
  cout << "Create a TestClass object with a = " << dec << _a << endl;
}

TestClass::~TestClass ()
{
  cout << "Destroy a TestClass object with a = " << dec << _a << endl;
}

OOPPtr< TestClass > TestClass::getSub ()
{
  return _pSubObj;
}

int TestClass::getA () const
{
  return _a;
}

TestClass1::TestClass1 ()
{
}

TestClass1::~TestClass1 ()
{
}